<!--
 * @Author: daidai
 * @Date: 2022-03-04 09:23:59
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-05-07 11:05:02
 * @FilePath: \web-pc\src\pages\big-screen\view\indexs\index.vue
-->
<template>
  <div class="contents">
    <div class="contetn_left">
      
      <ItemWrap class="contetn_left-top contetn_lr-item" title="遥感图像">
        <LeftTop/>
      </ItemWrap>

      <ItemWrap class="contetn_left-center contetn_lr-item" title="无人机视频">
        <LeftCenter />
      </ItemWrap>

      <ItemWrap class="contetn_left-top contetn_lr-item" title="地面测量">
        <Left4/>
      </ItemWrap>

      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="矿井涌水量">
        <LeftBottom />
      </ItemWrap>

    </div>

    <div class="contetn_center">
      <ItemWrap class="contetn_center_top" >
      <CenterMap  @marker-selected="handleMarkerSelected"/>
      </ItemWrap>
    </div>

    <div class="contetn_right">
      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="分层应力">
        <RightStress/>
      </ItemWrap>

      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="长观孔水位变化">
        <RightTop :marker-data="currentMarkerData"/>
      </ItemWrap>

      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="位移/应变">
        <RightStrain/>
      </ItemWrap>
      <!-- <ItemWrap class="contetn_left-bottom contetn_lr-item" title="抽水试验钻孔">
        <RightCenter :marker-data="informationMarkerData"/>
      </ItemWrap> -->

      <ItemWrap class="contetn_left-bottom contetn_lr-item" title="预警状态">
        <RightBottom />
      </ItemWrap>
    </div>
  </div>
</template>

<script>
// import LeftTop from './left-top.vue'
//import LeftCenter from "./left-center.vue";
//import CenterBottom from "./center-bottom.vue";
import LeftTop from './left1.vue'
import LeftCenter from "./left2.vue";
import LeftBottom from "./left3.vue";
import CenterMap from "./center-map.vue";
import CenterBottom from "./center-message.vue";
import RightTop from "./right-top.vue";
import RightCenter from "./right-center.vue";
import RightBottom from "./right-bottom.vue";

import Left4 from "./left4.vue";
import RightStress from "./rightStress.vue";
import RightStrain from "./rightStrain.vue";

export default {
  components: {
    LeftTop,
    LeftCenter,
    LeftBottom,
    CenterMap,
    RightTop,
    RightCenter,
    RightBottom,
    CenterBottom,
    Left4,
    RightStress,
    RightStrain
  },
  data() {
    return {
      currentMarkerData: null,
      informationMarkerData: null  //响应
    };
  },
  filters: {
    numsFilter(msg) {
      return msg || 0;
    },
  },
  created() {
  },

  mounted() {},
  methods: {
    handleMarkerSelected(marker) {
      this.currentMarkerData = marker;  // 接收 marker 数据并更新属性
      this.informationMarkerData = marker; //
    }
  },
};
</script>
<style lang="scss" scoped>
// 内容
.contents {
  .contetn_left,
  .contetn_right {
    width: 450px;
    box-sizing: border-box;
    // padding: 16px 0;
  }

  .contetn_center {
    width: 1400px;
  }

  //左右两侧 三个块
  .contetn_lr-item {
    height: 320px;
    width: 380px;
  }

  .contetn_center_top {
    width: 100%;
  }

  // 中间
  .contetn_center {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .contetn_center-bottom {
    height: 110px;
  }

  //左边 右边 结构一样
  .contetn_left,
  .contetn_right {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;

  
  }
}


@keyframes rotating {
    0% {
        -webkit-transform: rotate(0) scale(1);
        transform: rotate(0) scale(1);
    }
    50% {
        -webkit-transform: rotate(180deg) scale(1.1);
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        -webkit-transform: rotate(360deg) scale(1);
        transform: rotate(360deg) scale(1);
    }
}
</style>
